
import multiprocessing
import os
import sys
import threading
from monitor.data_storage.excel_handle import write_in
from monitor.dynamic_exhibition.draw_picture import start_monitor
from variable import write_thread_pool

if __name__ == '__main__':
    # write_thread_pool.submit(write_in, sys.argv[1], int(sys.argv[2]))
    # start_monitor(sys.argv[1])

    os.system("adb connect 127.0.0.1:62001")
    multiprocessing.Process(target=os.system, args=("adb shell monkey -p tv.danmaku.bili --throttle 600 1000",)).start()
    # threading.Thread(target=write_in, args=("tv.danmaku.bili", 600)).start()
    multiprocessing.Process(target=write_in, args=("tv.danmaku.bili", 600)).start()
    start_monitor("tv.danmaku.bili")
















































